/*
** freetree.c
**
** Pictor, Version 1.51, Copyright (c) 1992-94 SoftCircuits
** Redistributed by permission.
*/

#include <stdio.h>
#include <stdlib.h>
#include "compress.h"

/*
** Frees the memory in a compression code tree.
*/
void freetree(NODE *node)
{
	if(node != NULL) {
		freetree(node->child0);
		freetree(node->child1);
		free(node);
	}

} /* freetree */
